from odoo import fields, models


# 引入odoo内置的板块

class Stock_supplier(models.Model):
    _name = 'stock.supplier'
    # 相当于给了此模型一个唯一id，之后很多地方需要用到
    _description = 'persons information'
    # 编号
    serial_number = fields.Char(
        string='编号',
        required=True
    )
    # 供货商名称
    supplier_name = fields.Char(
        '供货商名称',
        required=True
    )
    # 电话
    telephone = fields.Integer(
        '电话',
        default=0,
        required=True
    )
    # 联系人
    contact = fields.Char(
        '联系人',
        required=True

    )
    # 联系人电话
    contact_telephone = fields.Integer(
        '联系人电话',
        default=0,
        required=True
    )
    # 联系人地址
    contact_address = fields.Char(
        '联系人地址',
        required=True
    )
